import * as NaiveUI from 'naive-ui';

export default function setupNaiveDiscreteApi() {
  const { message, dialog, notification, loadingBar, modal } = NaiveUI.createDiscreteApi(
    ['message', 'dialog', 'notification', 'loadingBar', 'modal'],
    {}
  );

  window.$loadingBar = loadingBar;
  window.$notification = notification;
  window.$message = message;
  window.$dialog = dialog;
  window.$modal = modal;
}
